﻿using System.Threading.Tasks;
using System.Runtime.InteropServices;


public class Script
{
    [DllImport("powrprof.dll", SetLastError = true)]
    public static extern bool SetSuspendState(bool hibernate, bool forceCritical, bool disableWakeEvent);
    public static async Task<object> ExecuteAsync(string endpoint, string uuid, long instId, short code)
    {
        SetSuspendState(false, true, true);
        return null;
    }
}
